#include<iostream>
using namespace std;
int main()
{ 
	string arr;
	cin >> arr;
	bool ans = true;
	for (int i = 0; i < arr.size()/2; i++)
	{
		if (arr[i] != arr[arr.size() - 1 - i]) {
			ans = false;
		}
	}
	if (ans) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}